//package wechat.rcv
//
//import com.industrialpark.domain.Notification
//import edu.fudan.mylang.pf.IObjectFactory
//import org.eclipse.xtend.lib.Property
//import org.springframework.beans.factory.annotation.Autowired
//import org.springframework.transaction.annotation.Transactional
//import org.springframework.ui.Model
//import org.springframework.web.bind.annotation.RequestMapping
//import org.springframework.web.bind.annotation.RequestMethod
//import org.springframework.web.bind.annotation.ResponseBody
//import org.springframework.web.bind.annotation.RestController
//import wechat.rcv.util.Log4jService
////import java.util.Date
//
//@RestController
//@RequestMapping("/notificationaccept")
//@Transactional
//@ResponseBody
//class AcceptMeetingController {
//	@Autowired
//	private IObjectFactory entities;
//	
//	@Autowired
//	private Log4jService log4jService
//	
//	@RequestMapping(method = RequestMethod::POST,  produces = {"application/json;charset=UTF-8"})
//	def AcceptMeetingResponse process(Long notificationid) {
//		val result = new AcceptMeetingResponse()=>[
//			retcode = 0
////			checkintime = new Date().time.toString
//		];
//		log4jService.info(typeof(MeetingDetailController),'notificationaccept request')
//		log4jService.info(typeof(MeetingDetailController),'notificationid = '+notificationid)
//		try{
//			assertNotNull("invalid notification id",entities.get(typeof(Notification),notificationid)).confirm("微信确认")
//		}
//		catch(WeiXinException re){
//			result.retcode = -1
//		}
//		return result;
//	}
//	def setModelAttribute(Model model,  String key, String value){
//		if ((value!=null)&&(!value.equals("")))
//			model.addAttribute(key, value);
//	}
//	def  <T> T assertNotNull(String msg, T t){
//		if(t==null) throw new WeiXinException(msg)
//		return t;
//	}
//	def  void assertTrue(String msg, boolean t){
//		if(!t) throw new WeiXinException(msg)
//	}
//}
//class AcceptMeetingResponse{
//	@Property int retcode
//	@Property String checkintime
//}